#include <stdio.h>
int main(){
	int a = 12345;
	int b = a/10000;//1
	int c = a/1000%10;//2
	int d = a/100%10;//3
	int e = a/10%10;//4
	int f = a%10;//5
	printf("%d\n%d\n%d\n%d\n%d\n",b,c,d,e,f);
	return 0;
}
